package com.ruge.user.domain.model;

import com.ruge.core.domain.BaseDomain;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author ruge.wu
 * @since 2022/2/9 14:56
 */
@Getter
@Setter
@Builder
@Entity
@ToString
@NoArgsConstructor
@AllArgsConstructor
@Table(name = "blog")
@org.hibernate.annotations.Table(appliesTo = "blog", comment = "博客-基础数据")
public class Blog extends BaseDomain implements Serializable {
    @Column(columnDefinition = "int comment '用户id'")
    private Long aid;
    @Column(columnDefinition = "longtext  comment '文章'")
    private String content;
    @Column(columnDefinition = "int  comment '点赞量'")
    private Integer likeCount;
    @Column(columnDefinition = "int  comment '评论量'")
    private int commentCount;
}